import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        name: "home"
    },
    {
        path: "/demo",
        name: "demo",
        component: () => import("@/views/antvX6/demo")
    },
    {
        path: "/x6-line",
        name: "x6-line",
        component: () => import("@/views/antvX6/line")
    },
    {
        path: "/x6-line-2",
        name: "x6-line-2",
        component: () => import("@/views/antvX6/line-2")
    },
    {
        path: "/custom-router",
        name: "custom-router",
        component: () => import("@/views/antvX6/custom-router")
    },
    {
        path: "/calc-line",
        name: "calc-line",
        component: () => import("@/views/antvX6/calc-line")
    },
    {
        path: "/test1",
        name: "test1",
        component: () => import("@/views/test/test1")
    },
    {
        path: "/default-demo",
        name: "default-demo",
        component: () => import("@/views/antvX6/default-demo")
    },
    {
        path: "/er",
        name: "er",
        component: () => import("@/views/antvX6/er")
    },
    {
        path: "/g6",
        name: "g6",
        component: () => import("@/views/antvG6")
    },
    {
        path: "/g6-1",
        name: "g6-1",
        component: () => import("@/views/antvG6/g6-1")
    },
    {
        path: "/g6-2",
        name: "g6-2",
        component: () => import("@/views/antvG6/g6-2")
    },
    {
        path: "/g6-3",
        name: "g6-3",
        component: () => import("@/views/antvG6/g6-3")
    },
    {
        path: "/select",
        name: "select",
        component: () => import("@/views/element/select")
    }
];

const router = new VueRouter({
    mode: "history",
    base: process.env.BASE_URL,
    routes
});

export default router;
